#include<stdio.h>
#include<string.h>
#include<string>
#include<iostream>
using namespace std;
int main(int argc, char *argv[])
{
    char *a = new char;
    string A = "123";
    string B = "456";
    A += B;
    cout << "A = " << A << endl;

    A = B;
    strcpy(a, A.c_str());
    printf("a = %s\n", a);
    return 0;
}
